def log(a):
    def logd(*args,**keys):
        print(f'操作开始{a.__name__}')
        r=a(*args,**keys)
        print(f'操作结束{a.__name__},返回值为{r}')
    return logd

@log
def jisuan(n,m):
    sum=0
    for i in range(n,m+1):
        sum+=i
    return sum
jisuan(1,132)

@log
def jisuan(n,m):
    sum=0
    for i in range(n,m):
        sum+=i

jisuan(25,45)